package com.aiti.lulian.entity.newCard;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * description:
 * auth fcb
 * date 2025-08-11 16:37
 **/
@ApiModel(value = "个人名片基本信息",description = "")
@TableName("card_base_info")
@Data
public class CardBaseInfo {
    /** 主键 */
    @ApiModelProperty(name = "主键",notes = "")
    @TableId(type = IdType.INPUT, value = "base_id")
    private String baseId ;
    /** 用户id */
    @ApiModelProperty(name = "用户id",notes = "")
    @TableField(value = "user_id")
    private String userId ;

    /** 企业id */
    @ApiModelProperty(name = "企业id 经讨论确认，该字段有值情况下为企业名片，没有值为个人名片",notes = "")
    @TableField(value = "enterprise_id")
    private String enterpriseId ;

    /** 是否当前在用，1：当前在用，0：非当前在用 */
    @ApiModelProperty(name = "是否当前在用，1：当前在用，0：非当前在用",notes = "")
    @TableField(value = "current_use")
    private Integer currentUse ;

    /** 名片类型。1：单职位，2：多职位 */
    @ApiModelProperty(name = "名片类型。1：单职位，2：多职位",notes = "")
    @TableField(value = "card_type")
    private Integer cardType ;

    /** 名片版本。1：个人版，2：试用版(个人或者企业都可能会用到)，3：付费正式版 (个人或者企业都可能会用到)  4 高级版  5 拓客版 */
    @ApiModelProperty(name = "名片版本",notes = "")
    @TableField(value = "card_version")
    private String cardVersion ;

    /** 名片付费过期时间 */
    @ApiModelProperty(name = "名片付费过期时间",notes = "")
    @TableField(value = "expire_time")
    private Date expireTime ;

    /** 姓名 */
    @ApiModelProperty(name = "姓名",notes = "")
    @TableField(value = "name")
    private String name ;
    /** 公司名称 */
    @ApiModelProperty(name = "公司名称",notes = "")
    @TableField(value = "enterprise_name")
    private String enterpriseName ;
    /** 职位1 */
    @ApiModelProperty(name = "职位1",notes = "")
    @TableField(value = "position_one")
    private String positionOne ;
    /** 职位2 */
    @ApiModelProperty(name = "职位2",notes = "")
    @TableField(value = "position_two")
    private String positionTwo ;
    /** 头像 */
    @ApiModelProperty(name = "头像",notes = "")
    @TableField(value = "avatar")
    private String avatar ;
    /** 是否显示头像 */
    @ApiModelProperty(name = "是否显示头像",notes = "")
    @TableField(value = "show_avatar")
    private Integer showAvatar ;
    /** 行业id */
    @ApiModelProperty(name = "行业id",notes = "")
    @TableField(value = "industry_one")
    private String industryOne ;
    /** 行业名称 */
    @ApiModelProperty(name = "行业名称",notes = "")
    @TableField(value = "industry_one_name")
    private String industryOneName ;
    /** 行业id */
    @ApiModelProperty(name = "行业id",notes = "")
    @TableField(value = "industry_two")
    private String industryTwo ;
    /** 行业名称 */
    @ApiModelProperty(name = "行业名称",notes = "")
    @TableField(value = "industry_two_name")
    private String industryTwoName ;
    /** 创建人 */
    @ApiModelProperty(name = "创建人",notes = "")
    @TableField(value = "base_create_by")
    private String baseCreateBy ;
    /** 创建时间 */
    @ApiModelProperty(name = "创建时间",notes = "")
    @TableField(value = "base_create_time")
    private Date baseCreateTime ;
    /** 更新人 */
    @ApiModelProperty(name = "更新人",notes = "")
    @TableField(value = "base_update_by")
    private String baseUpdateBy ;
    /** 更新时间 */
    @ApiModelProperty(name = "更新时间",notes = "")
    @TableField(value = "base_update_time")
    private Date baseUpdateTime ;
    /** 删除标识。0：未删除，1：已删除 */
    @ApiModelProperty(name = "删除标识。0：未删除，1：已删除",notes = "")
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * card_base_info 新增字段：
     * ①pub_screenshot_url 转发截图url（数据来源于 cloud_show_system 库的 card_pub_screenshot 表的 url 字段值）
     * ②gzh_open_id 微信公众号id（数据来源于 sys_user 表的 gzh_open_id 字段值）
     * ③unionid 微信unionid (数据来源于 sys_user 表的 unionid 字段值)
     * ④share_title 转发标题（数据来源于 sys_user 表的 share_title 字段值）
     * ⑤pub_background_style 转发背景样式（'1'：样式一，'2'：样式二，'3'：自定义）（数据来源于 sys_user 表的 pub_background_style 字段值）
     * ⑥pub_background_url 转发背景URL（数据来源于 sys_user 表的 pub_background_url 字段值）
     * ⑦dept_id 部门id (数据来源于 sys_user 表的 dept_id 字段值)
     * ⑧dept_name 部门名称（数据来源于 sys_user 表的 dept_name 字段值）
     */

    @ApiModelProperty(name = "转发截图url",notes = "")
    @TableField(value = "pub_screenshot_url")
    private String pubScreenshotUrl;

    @ApiModelProperty(name = "公众号id",notes = "")
    @TableField(value = "gzh_open_id")
    private String gzhOpenId;

    @ApiModelProperty(name = "微信unionid",notes = "")
    @TableField(value = "unionid")
    private String unionid;

    @ApiModelProperty(name = "转发标题",notes = "")
    @TableField(value = "share_title")
    private String shareTitle;

    @ApiModelProperty(name = "转发背景样式",notes = "")
    @TableField(value = "pub_background_style")
    private String pubBackgroundStyle;

    @ApiModelProperty(name = "转发背景URL",notes = "")
    @TableField(value = "pub_background_url")
    private String pubBackgroundUrl;

    @ApiModelProperty(name = "部门id",notes = "")
    @TableField(value = "dept_id")
    private String deptId;

    @ApiModelProperty(name = "部门名称",notes = "")
    @TableField(value = "dept_name")
    private String deptName;

    @ApiModelProperty(name = "名气互联排名被浏览量",notes = "")
    @TableField(value = "card_rank_browse_count")
    private Long cardRankBrowseCount;

    @ApiModelProperty(name = "名气互联总分数",notes = "")
    @TableField(value = "card_rank_total_score")
    private Long cardRankTotalScore;

    @ApiModelProperty(name = "名气互联累计打卡天数",notes = "")
    @TableField(value = "card_rank_check_in_count")
    private Long cardRankCheckInCount;


    @ApiModelProperty(name = "名气互联任务分数",notes = "")
    @TableField(value = "card_rank_task_score")
    private Long cardRankTaskScore;

    @ApiModelProperty(name = "使用资源类型。1：个人免费，2：个人付费， 3：企业",notes = "")
    @TableField(value = "use_resource_type")
    private Integer useResourceType;

    @ApiModelProperty(name = "名片背景图",notes = "")
    @TableField(value = "card_pic_bg")
    private String cardPicBg;

    @ApiModelProperty(name = "转发量",notes = "")
    @TableField(value = "share_count")
    private Long shareCount;

    @ApiModelProperty(name = "访问量",notes = "")
    @TableField(value = "view_count")
    private Long viewCount;

    @ApiModelProperty(name = "昨日访问量",notes = "")
    @TableField(value = "yesterday_count")
    private Long yesterdayCount;

    @ApiModelProperty(name = "今日访问量",notes = "")
    @TableField(value = "to_day_count")
    private Long toDayCount;

    @ApiModelProperty(name = "是否阅读了用户手册 1为是0为否",notes = "")
    @TableField(value = "read_manual_flag")
    private String readManualFlag;

    /** 1：已登录过，0：未登录过 */
    @ApiModelProperty(name = "是否登录过",notes = "")
    @TableField(value = "logged_in")
    private Byte loggedIn;

    @ApiModelProperty(name = "使用规模，1：自己使用，2：1-10人，3：11-100人，4：100人以上",notes = "")
    @TableField(value = "enterprise_use_type")
    private Integer enterpriseUseType;

    @ApiModelProperty(name = "企业名片手机号",notes = "")
    @TableField(value = "enterprise_mobile")
    private String enterpriseMobile;

    @ApiModelProperty(name = "企业名片邮箱",notes = "")
    @TableField(value = "enterprise_email")
    private String enterpriseEmail;

    @ApiModelProperty(name = "模板id",notes = "")
    @TableField(value = "template_id")
    private String templateId;

    @TableField(exist = false)
    private String status;

    @TableField(exist = false)
    private String logo;
}
